{template Public:Page:header}

 <div class="container">
 
<div class="row">
           
                            <div class="profile-container">
                                <div class="profile-header row">
                                    <div class="col-lg-2 col-md-4 col-sm-12 text-center">
                                   		{echo GetAvatarSimple($member['uid'],120,'header-avatar')}
                                    </div>
                                    <div class="col-lg-5 col-md-8 col-sm-12 profile-info">
                                        <div class="header-fullname">{echo $member['username']} &nbsp; {if $member['buyer_level']}<img src="/assets/img/buyer_credit_level/level_{echo $member['buyer_level']}.gif"/>{/if}</div>
                                        <div class="header-information">
                                        	<p>{echo $member['typename']}</p>
                                            <p>所在地：{echo $member['provname']} {echo $member['cityname']} {echo $member['distname']}</p>
                                        </div>
                                    </div>
                                    <div class="col-lg-5 col-md-12 col-sm-12 col-xs-12 profile-stats">
                                        <div class="row">
                                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
                                                <div class="stats-value pink">{echo $member['task_number']}</div>
                                                <div class="stats-title">发任务</div>
                                            </div>
                                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
                                                <div class="stats-value pink">{echo $member['moneyout']/100}</div>
                                                <div class="stats-title">消费</div>
                                            </div>
                                            <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
                                                <div class="stats-value pink">{echo $member['buyer_haoping']}</div>
                                                <div class="stats-title">好评</div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="inlinestats-col">
                                                关注领域： {echo $member['category_name_3']} {echo $member['category_name_2']} {echo $member['category_name_1']} 
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="profile-body">
                                        <div class="tabbable">
                                            <ul id="myTab11" class="nav nav-tabs tabs-flat  nav-justified">
                                                <li class="active">
                                                    <a href="#SpaceTask" data-toggle="tab" onclick="GetDataTask('/get/space/task/uid/{echo $uid}');">
                                                        发布的任务
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="#SpaceEvaluate" data-toggle="tab" onclick="GetDataEvaluate('/get/evaluate/seller/buyer_uid/{echo $uid}');">
                                                        服务商的评价
                                                    </a>
                                                </li>
                                            </ul>
                                            <div class="tab-content tabs-flat">
                                                <div class="tab-pane active" id="SpaceTask">
                                                    
                                                    <table class="table table-hover">
                                                    <thead>
                                                        <tr>
                                                            <th>
                                                               标题
                                                            </th>
                                                            <th>
                                                                金额
                                                            </th>
                                                            
                                                             <th>
                                                               投稿量
                                                            </th>
                                                            <th>
                                                                发布时间
                                                            </th>
                                                            <th>
                                                               结束时间
                                                            </th>
                                   							 <th>
                                                             类型
                                                            </th>
                                                             <th>
                                                             状态
                                                            </th>
                                                        </tr>
                                                    </thead>
                                                    <tbody id="SpaceTaskList"></tbody>
                                                </table>
                                                    
                                                <div class="dataTables_paginate paging_bootstrap text-right" id="SpaceTaskListPage"></div>    
                                                </div>
                                                <div class="tab-pane" id="SpaceEvaluate">
                                                    <div id="ListEvaluate"></div>
                 									<div class="dataTables_paginate paging_bootstrap text-right" id="ListEvaluatePage"></div>
                                                </div>
                                            </div>
                                        </div>
                                </div>
                            </div>
                        </div>
            
</div>

<script>
$(function(){
	GetDataTask('/get/space/task/uid/{echo $uid}');
});
function GetDataTask(url){
	$('#SpaceTaskList').html('加载中...');
	$.getJSON(url, function(json){
		if(json.status=='ok'){
			if(json.data.list){
				var data='';
				if(json.data.list){
					for(var key in json.data.list){
						data+='<tr>'+
                            '<td><a target="_blank" href="/task/'+json.data.list[key].id+'">'+json.data.list[key].subject+'</a></td>'+
							'<td><span class="color_f60">￥'+json.data.list[key].money+'</span></td>'+
							'<td>'+json.data.list[key].draft_success+'</td>'+
							'<td>'+json.data.list[key].dateline+'</td>'+
							'<td>'+json.data.list[key].endtime+'</td>'+
							'<td>'+json.data.list[key].task_mode+'</td>'+	
							'<td>'+json.data.list[key].process_order_name+'</td>'+	
                        '</tr>';
					}
				}
	 
				$('#SpaceTaskList').html(data);
				var page='';
				if(json.data.page){
					page='<ul class="pagination">'+json.data.page+'</ul>';
				}
				
				$("#SpaceTaskListPage").html(page);
				
			}else{
				$('#SpaceTaskList').html('没有数据!');
			}
		}else{
			$('#SpaceTaskList').html('没有数据!');
		}
	});
}
</script>

{template Public:Page:footer}